home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 032a / acctxt2.zip / BTRIEVE1.TXT < prev    next >
Text File  |  1993-01-10  |  3KB  |  79 lines

  1. TITLE:  "Couldn't find Object <tablename>" with Btrieve Files
  2.  
  3. ---------------------------------------------------------------------
  4. The information in this article applies to:
  5.  
  6.  - Microsoft Access version 1.0
  7. ---------------------------------------------------------------------
  8.  
  9. Summary:
  10.  
  11. A number of people have reported receiving the error message
  12.  
  13.    Couldn't find object '<table name.'
  14.  
  15. when attempting to import or attach to Btrieve files.  This
  16. article explains how to identify and fix this problem.
  17.  
  18. More Information:
  19.  
  20. Microsoft Access requires the Xtrieve-format data dictionary files,
  21. FILE.DDF, INDEX.DDF, and FIELDS.DDF, to be able to use Btrieve
  22. files.  FILE.DDF contains the DOS file name of each data table
  23. in the dictionary.  These file names can be in any of the valid four
  24. DOS formats:
  25.  
  26.    1.  File Only  ("mydata.dat")
  27.  
  28.    2.  Relative Path ("..\dev\test\mydata.dat")
  29.  
  30.    3.  Fully Qualified ("c:\tools\dev\test\mydata.dat")
  31.  
  32.    4.  Universal Naming Convention, UNC
  33.          ("\\myserver\users\joe\tools\dev\test\mydata.dat")
  34.  
  35. When importing or attaching to a Btrieve file, Microsoft Access
  36. retrieves the DOS filename from FILE.DDF.  It then attempts to open
  37. this file.  If the file doesn't exist in the location specified,
  38. you will receive the error
  39.  
  40.    Couldn't find object
  41.  
  42. In the case of the first 2 examples, the ability to open the
  43. file is dependant on the current directory being correct.  For
  44. example #1, MYDATA.DAT must exist in the current directory.
  45. For example #2, MYDATA.DAT, the "..\DEV\TEST" directory must
  46. exist relative to the current directory, and MYDATA.DAT must
  47. exist in it.
  48.  
  49. Exactly which directory is the current directory is complicated
  50. by the fact that under Windows, all applications share the same
  51. environment, and therefore the same current directory.  If you
  52. change the current directory in Excel, for example by doing a
  53. File Open and changing directories to open a file, the current
  54. directory for Microsoft Access is also changed.
  55.  
  56. So, the first step to fixing the problem is to find out what the
  57. paths are in FILE.DDF. You can do this by opening FILE.DDF in
  58. WRITE, the word processor provided with Windows.  When asked if
  59. you want to convert this file to WRITE format, specify No
  60. Conversion.  You will see a bunch of characters that look like a
  61. box.  Scroll to the end of the file.  There you will see the DOS
  62. filenames of your Btrieve data files.  The extension is usually
  63. .DAT, but doesn't have to be.
  64.  
  65. WARNING: DO NOT save the file after you are finished viewing
  66. it with WRITE.  If you save this file, it will become corrupt and
  67. unrepairable.
  68.  
  69. Now that you have the file names, there are 2 things you can do
  70. to fix the problem
  71.  
  72. 1. Move the files into the correct location(s).  This is the
  73.    easiest fix, and the one we recommend.
  74.  
  75. 2. Using Btrieve or one of the third-party and/or shareware
  76.    tools, modify FILE.DDF so that the path to the .DAT file is
  77.    correct.  This method is much more complicated, and not
  78.    recommended for anyone not intimately familiar with Btrieve.
  79.